<?php
if (!$view_data['categories'])
{
	include_once('model/photo_category.php');
	$category = new LZ_Photo_Category;
	$view_data['categories'] = $category->get_list();
}

if (!$view_data['users'])
{
	include_once('model/user.php');
	$user = new LZ_User;
	$view_data['users'] = $user->get_list();
}

include_once('model/hot.php');
$hot = new LZ_Hot;
$view_data['hot_keywords'] = $hot->get_list(10);


if ($_SESSION['search_keyword'])
{
	$view_data['keyword'] = $_SESSION['search_keyword'];
}